<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>插值表达式</title>
</head>

<body>
<div id="app">
    <!-- json 数据（变量） -->
    <h1>{{ msg }}</h1>
    <!-- 数字 -->
    <h1>{{ 10 }}</h1>
    <!-- 字符串 -->
    <h1>{{ "string" }}</h1>
    <!-- 表达式 -->
    <h1>{{ 12 + 13 }}</h1>
    <h1>{{ "hello" + name }}</h1>
    <h1>{{ 2 > 3? "true":"false" }}</h1>
</div>

<script src="../js/vue.min.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            msg: "hello",
            name: '三毛'
        },
    });
</script>
</body>
</html>